<template>
	<view>
		<cu-custom bgColor="bg-gradual-pink" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">公告</block>
		</cu-custom>
		<view v-html="data.body">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:{},
			}
		},
		onLoad: function (option) {
			console.log('zhongyu')
			const id = option.id
			 this.getData(id)
		},
		methods:{
			async getData(id) {
				// const res = await this.$https.get(`/rest/Article`)
				const res = await this.$https.get(`/Article/${id}`)
				console.log(res,'zhongyu')
				this.data = res.data
			},
		}
	}
</script>

<style>
</style>
